package com.unism.uniMeterage.meterage.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.repository.query.QueryLookupStrategy;

/**
 * @author unism01
 * @date 2017/12/11
 */
@Configuration
@EnableJpaRepositories(basePackages = {"com.unism.uniMeterage.meterage.dao"},
        repositoryImplementationPostfix = "Impl",
        queryLookupStrategy = QueryLookupStrategy.Key.CREATE_IF_NOT_FOUND,
        entityManagerFactoryRef = "entityManagerFactory",
        transactionManagerRef = "transactionManager"
)
@EntityScan(basePackages = {"com.unism.uniMeterage.global.entity"})
public class JpaConfig {
}
